package cn.wolfcode.luowowo.comment.dao;

import cn.wolfcode.luowowo.comment.domain.SceneryComment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * mongoDB景点评论接口
 */
@Repository
public interface ISceneryCommentDAO extends MongoRepository<SceneryComment, String> {
    /**
     * 通过sceneryId查询
     * @param sceneryId 风景id
     * @param pageable 分页信息
     * @return
     */
    Page<SceneryComment> findBySceneryId(Long sceneryId, Pageable pageable);

}
